#pragma once

#include "Widget.h"
#include "Button.h"
#include "Glyph.h"

namespace My {

class GlyphButton : public Button, public Widget
{
private:
	Glyph			m_Glyph;
	GrayedGlyph		m_Grayed;
public:
	GlyphButton(LPCTSTR szGlyph, LPCTSTR szMask);
	void SetGlyph(LPCTSTR szGlyph, LPCTSTR szMask);
public:
	virtual CSize GetPreferredSize() const;
	virtual void HandleClick() { }
public:
	virtual void HandlePaint(CDC * pDC, const CRect & r);
};

} // My